package com.my.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.my.demo.mapper.UserMapper;
import com.my.demo.pojo.User;
import com.my.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
        implements UserService {

  @Autowired
  UserMapper userMapper;
  @Override
  public Integer selectIdByName(String name) {
    return userMapper.selectIdByName(name) ;
  }
}
